package com.czkt.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.czkt.mapper.SsUserRoleRelMapper;
import com.czkt.pojo.SsUserRoleRel;
import com.czkt.service.SsUserRoleRelService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SsUserRoleRelServiceImpl extends ServiceImpl<SsUserRoleRelMapper, SsUserRoleRel> implements SsUserRoleRelService {
    @Override
    public List<SsUserRoleRel> getUid(long uid) {
        LambdaQueryWrapper<SsUserRoleRel> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(SsUserRoleRel::getId,uid);
        return baseMapper.selectList(queryWrapper);
    }
}
